<%@ page import="com.zs.dao.AdminDao" %><%--
  Created by IntelliJ IDEA.
  User: chongge
  Date: 2024/1/12
  Time: 9:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        int id =  Integer.parseInt(request.getParameter("id"));
        AdminDao adminDao = new AdminDao();
        boolean result = adminDao.delUpdate(id);
        if (result){
            response.sendRedirect("adminManage.jsp");
        }else{
            out.print("<script>alert('删除失败,请联系管理员')</script>");
        }
    %>
</body>
</html>
